home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form2
- Caption = "Search"
- ClientHeight = 3480
- ClientLeft = 3660
- ClientTop = 2010
- ClientWidth = 3945
- LinkTopic = "Form2"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 3480
- ScaleWidth = 3945
- Begin VB.CommandButton Command2
- Caption = "Cancel"
- Height = 255
- Left = 1080
- TabIndex = 5
- Top = 3000
- Width = 975
- End
- Begin VB.CommandButton Command1
- Caption = "Search"
- Height = 255
- Left = 120
- TabIndex = 4
- Top = 3000
- Width = 975
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 120
- TabIndex = 2
- Top = 2400
- Width = 1935
- End
- Begin VB.Frame Frame2
- Caption = "Comparison"
- Height = 3255
- Left = 2160
- TabIndex = 1
- Top = 120
- Width = 1695
- Begin VB.OptionButton Option7
- Caption = "EndGreater"
- Height = 195
- Index = 10
- Left = 120
- TabIndex = 22
- Top = 2880
- Width = 1335
- End
- Begin VB.OptionButton Option7
- Caption = "StartGreater"
- Height = 195
- Index = 9
- Left = 120
- TabIndex = 21
- Top = 2640
- Width = 1455
- End
- Begin VB.OptionButton Option7
- Caption = "EndLess"
- Height = 195
- Index = 8
- Left = 120
- TabIndex = 20
- Top = 2400
- Width = 1455
- End
- Begin VB.OptionButton Option7
- Caption = "StartLess"
- Height = 195
- Index = 7
- Left = 120
- TabIndex = 19
- Top = 2160
- Width = 1335
- End
- Begin VB.OptionButton Option7
- Caption = "EndsLike"
- Height = 195
- Index = 6
- Left = 120
- TabIndex = 18
- Top = 1920
- Width = 1095
- End
- Begin VB.OptionButton Option7
- Caption = "StartsLike"
- Height = 195
- Index = 5
- Left = 120
- TabIndex = 17
- Top = 1680
- Width = 1215
- End
- Begin VB.OptionButton Option7
- Caption = "Has"
- Height = 195
- Index = 4
- Left = 120
- TabIndex = 16
- Top = 1440
- Width = 615
- End
- Begin VB.OptionButton Option7
- Caption = "<>"
- Height = 195
- Index = 3
- Left = 120
- TabIndex = 15
- Top = 1080
- Width = 615
- End
- Begin VB.OptionButton Option7
- Caption = "<="
- Height = 195
- Index = 2
- Left = 120
- TabIndex = 14
- Top = 840
- Width = 615
- End
- Begin VB.OptionButton Option7
- Caption = ">="
- Height = 195
- Index = 1
- Left = 120
- TabIndex = 13
- Top = 600
- Width = 615
- End
- Begin VB.OptionButton Option7
- Caption = "="
- Height = 195
- Index = 0
- Left = 120
- TabIndex = 12
- Top = 360
- Width = 615
- End
- End
- Begin VB.Frame Frame1
- Caption = "Field to Search"
- Height = 1935
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 1935
- Begin VB.OptionButton Option1
- Caption = "Zip"
- Height = 255
- Index = 5
- Left = 120
- TabIndex = 11
- Top = 1560
- Width = 1575
- End
- Begin VB.OptionButton Option1
- Caption = "State"
- Height = 255
- Index = 4
- Left = 120
- TabIndex = 10
- Top = 1320
- Width = 1575
- End
- Begin VB.OptionButton Option1
- Caption = "City"
- Height = 255
- Index = 3
- Left = 120
- TabIndex = 9
- Top = 1080
- Width = 1575
- End
- Begin VB.OptionButton Option1
- Caption = "Address2"
- Height = 255
- Index = 2
- Left = 120
- TabIndex = 8
- Top = 840
- Width = 1575
- End
- Begin VB.OptionButton Option1
- Caption = "Address1"
- Height = 255
- Index = 1
- Left = 120
- TabIndex = 7
- Top = 600
- Width = 1575
- End
- Begin VB.OptionButton Option1
- Caption = "Name"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 6
- Top = 360
- Width = 1575
- End
- End
- Begin VB.Label Label1
- Caption = "Search Phrase:"
- Height = 255
- Left = 120
- TabIndex = 3
- Top = 2160
- Width = 1935
- End
- Attribute VB_Name = "Form2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- flag = False
- For a = 0 To 5
- If Option1(a).Value = True Then flag = True: Field$ = Option1(a).Caption
- Next a
- If flag = False Then MsgBox "Must Select a field to search.": Exit Sub
- flag = False
- For a = 0 To 10
- If Option7(a).Value = True Then flag = True: comp$ = Option7(a).Caption
- Next a
- If flag = False Then MsgBox "You must select a comparison operator.": Exit Sub
- If Trim$(Text1) = "" Then MsgBox "Please enter a search parameter.": Exit Sub
- searchfor = Text1.Text
- Form1.Label3 = "Search Started @: " + Time$
- MyDB.FindFirst Field$, comp$, searchfor
- Form1.Label4 = "Search Ended @: " + Time$
- cancelflag = False
- Form2.Hide
- End Sub
- Private Sub Command2_Click()
- cancelflag = True
- Form2.Hide
- End Sub
-